/*
 * @Description:
 * @Date: 2024-07-09 14:40:33
 * @LastEditTime: 2024-07-17 10:07:30
 */
import request from '@/config/axios'
import qs from 'qs'

//获取消息列表
export const getMessagePage = async (params) => {
  return await request.get({ url: '/countryside/message-recored/page', params })
}
//新增消息
export const createMessage = async (data) => {
  return await request.post({ url: '/countryside/message-center/create', data })
}

//获取消息详情
export const getMessageDetail = async (id) => {
  return await request.get({ url: '/countryside/message-recored/get?id=' + id })
}
//获取居民档案分页
export const getTips = async (data) => {
  return await request.post({ url: '/countryside/dv_affairs/resident_record/page',data})
}

// 获取全体村民
export const getPeople = async () => {
  return await request.get({ url: '/countryside/dv_affairs/resident_record/list-all-simple' })
}

//批量删除消息 
export const deleteMessage = async (id) => {
  return await request.delete({ url: '/countryside/message-recored/delete?id=' + id })
}

//获取短信模板列表
export const getSmsPage = async (params) => {
  return await request.get({ url: '/system/sms-template/page', params })
}